﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.SqlTypes;

namespace Project_KhuyenMaiVang.Models
{
    public class SanPhamDTO
    {
        private int _MaSanPham;
        private string _TenSanPham;
        private int _MaLoaiSanPham;
        private string _MoTaChiTiet;
        private float _GiaGoc;   
        private int _IDAccount;
        

        public SanPhamDTO(int msp, string tensp, int maloai, string mota, float giagoc, int id)
        {
            MaSanPham = msp;
            TenSanPham = tensp;
            MaLoaiSanPham = maloai;
            MoTaChiTiet = mota;
            GiaGoc = giagoc;
            IDAccount = id;
        }

        public SanPhamDTO()
        {
            
        }

        public int IDAccount
        {
            get { return _IDAccount; }
            set { _IDAccount = value; }
        }

        public float GiaGoc
        {
            get { return _GiaGoc; }
            set { _GiaGoc = value; }
        }

        public string MoTaChiTiet
        {
            get { return _MoTaChiTiet; }
            set { _MoTaChiTiet = value; }
        }

        public int MaLoaiSanPham
        {
            get { return _MaLoaiSanPham; }
            set { _MaLoaiSanPham = value; }
        }

        public string TenSanPham
        {
            get { return _TenSanPham; }
            set { _TenSanPham = value; }
        }

        public int MaSanPham
        {
            get { return _MaSanPham; }
            set { _MaSanPham = value; }
        }
    }
}